package com.yyfax.pay.vo.depository;

import java.io.Serializable;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

import com.alibaba.fastjson.JSON;
import com.yyfax.pay.common.enums.FuiouDepositWithdrawCashWay;
import com.yyfax.pay.common.enums.FuiouDepositWithdrawType;

/**
 * 修改提现类型请求参数
 * 
 * @author buyi
 * @date 2017-11-28 15:17:20
 * @since v2.0.0
 */
@SuppressWarnings("serial")
public class ModifyWithdrawCashWayReq implements Serializable {
	/** 商户订单号 */
	@NotBlank(message = "orderId不能为空")
	private String orderId;
	/** 商户订单时间 */
	@NotBlank(message = "orderTime不能为空")
	@Pattern(regexp = "([0-9]{4}[-][0-9]{2}[-][0-9]{1,2}[ ][0-9]{2}[:][0-9]{2}[:][0-9]{2})", message = "orderTime时间格式有误")
	private String orderTime;
	/** 商户用户id */
	@NotBlank(message = "userId不能为空")
	private String userId;
	/** 登录ID */
	@NotBlank(message = "loginId不能为空")
	private String loginId;
	/**
	 * 提现方式，1-T+1,0-T+0;
	 */
	@NotNull(message = "cashWay不能为空")
	private FuiouDepositWithdrawCashWay cashWay;
	/**
	 * 业务类型，1-提现，2-委托提现
	 */
	@NotNull(message = "busiType不能为空")
	private FuiouDepositWithdrawType busiType;

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public FuiouDepositWithdrawCashWay getCashWay() {
		return cashWay;
	}

	public void setCashWay(FuiouDepositWithdrawCashWay cashWay) {
		this.cashWay = cashWay;
	}

	public FuiouDepositWithdrawType getBusiType() {
		return busiType;
	}

	public void setBusiType(FuiouDepositWithdrawType busiType) {
		this.busiType = busiType;
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}
}
